package shoooter.geometry;


public class Vector {

    private double x, y, z;

    Vector(double x, double y, double z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    Vector(Vector v) {
        this.x = v.getX();
        this.y = v.getY();
        this.z = v.getZ();
    }

    /** Accessori e Mutatori */

    public double getX() { return this.x; }
    public double getY() { return this.y; }
    public double getZ() { return this.z; }
    public void setX(double d) { this.x = d; }
    public void setY(double d) { this.y = d; }
    public void setZ(double d) { this.z = d; }
    public void incrX(double d) { this.x += d; }
    public void incrY(double d) { this.y += d; }
    public void incrZ(double d) { this.z += d; }

    public boolean isZero() {
        return (this.x == 0 && this.y == 0 && this.z == 0);
    }
    
}